package homework.clazz.Data4;

public class Person
{
    private String name;
    private  int age=18;
    {
        System.out.println("实例代码块启动");
    }
    public Person()
    {
        System.out.println("调用了个人类的构造方法Person()");
    }
    public void setNameAge(String name,  int age)
    {
        this.name=name;
        this.age=age;
    }
    public void  show()
    {
        System.out.println("姓名："+name+" 年龄："+age);
    }
}